package cn.csc.module.order.controller.app.dto;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotNull;
import java.math.BigDecimal;
import java.math.BigInteger;

/**
 * 订单参数
 *
 * @author
 * @date 2020-12-04 11:27:35
 */
@Data
public class OrderCreateReqDTO {
    @ApiModelProperty(value = "订单Id", required = true)
    private BigInteger orderId;

    @ApiModelProperty(value = "配送类型3：无需快递" )
    private Integer dvyType;

    @ApiModelProperty(value = "用户订单地址id" )
    @NotNull(message = "订单地址id不能为空")
    private BigInteger orderAddrId;

    @ApiModelProperty(value = "客户编号", required = true)
    private BigInteger userId;
    @ApiModelProperty(value = "客户微信昵称", required = true)
    private String  nickName;

    @ApiModelProperty(value = "客户手机号", required = true)
    private String  memberPhone;

    @ApiModelProperty(value = "商户编码,商户id")
    @NotNull(message = "商户id不能为空")
    private BigInteger shopId;
    @ApiModelProperty(value = "店铺名称")
    @NotNull(message = "店铺名称不能为空")
    private String shopName;

    @ApiModelProperty(value = "总值金额", required = true)
    private BigDecimal total;

    @ApiModelProperty(value = "订单商品总数")
    @NotNull(message = "订单商品总数不能为空")
    private Integer allCount;

    @ApiModelProperty(value = "类目Id")
    private String categoryId;

    @ApiModelProperty(value = "订单商品spu")
    @NotNull(message = "订单商品id不能为空")
    private BigInteger spuId;

    @ApiModelProperty(value = "产品名称")
    private String spuName;

    @ApiModelProperty(value = "订单商品sku")
    @NotNull(message = "订单商品sku不能为空")
    private BigInteger skuId;

    @ApiModelProperty(value = "sku名称")
    private String skuName;

    @ApiModelProperty(value = "产品价格", required = true)
    private BigDecimal productPrice;

    @ApiModelProperty(value = "产品主图")
    private String pic;


}
